.NET Framework Class Library |
TaskCompletionSource<(Of <(TResult>)>)..::.Task Property |
TaskCompletionSource<(Of <(TResult>)>) Class See Also Send Feedback |
Gets the Task<(Of <(TResult>)>) created
by this TaskCompletionSource<(Of <(TResult>)>).
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Remarks
This property enables a consumer access to the Task<(Of <(TResult>)>) that is controlled by this instance.
The SetResult(TResult), SetException(Exception),
SetException(IEnumerable<(Of <(Exception>)>)), and SetCanceled()()()
methods (and their "Try" variants) on this instance all result in the relevant state
transitions on this underlying Task.